﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Credera.Theta.Host.WindowsForms.InputEventsFilter
{
    class FullBlockEventsFilter : IInputEventsFilter
    {
        public bool IsEngaged { get; private set; }

        public void HandleKeyDown(InputEventsFilterArgs args, System.Windows.Forms.KeyEventArgs e)
        {
            e.SuppressKeyPress = true;
        }

        public void HandleKeyUp(InputEventsFilterArgs args, System.Windows.Forms.KeyEventArgs e)
        {
            e.SuppressKeyPress = true;
        }

        public void HandleKeyPress(InputEventsFilterArgs args, System.Windows.Forms.KeyPressEventArgs e)
        {
            e.Handled = true;
        }

        public void Engage() { this.IsEngaged = true; }
        public void Disengage() { this.IsEngaged = false; }
    }
}
